package cn.ibizlab.odoo.core.odoo_resource.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_resource.domain.Resource_calendar_leaves;
import cn.ibizlab.odoo.core.odoo_resource.filter.Resource_calendar_leavesSearchContext;

/**
 * 实体[Resource_calendar_leaves] 服务对象接口
 */

public interface IResource_calendar_leavesService{
     boolean create(Resource_calendar_leaves resource_calendar_leaves) ;
     void createBatch(List<Resource_calendar_leaves> resource_calendar_leavess, int batchSize) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Resource_calendar_leaves> resource_calendar_leavess, int batchSize) ;
     boolean update(Resource_calendar_leaves resource_calendar_leaves) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Resource_calendar_leaves get(Integer id) ;
     Resource_calendar_leaves get(Resource_calendar_leaves resource_calendar_leaves) ;

    /**
     * 查询集合 默认查询
     */
    Page<Resource_calendar_leaves> searchDefault(Resource_calendar_leavesSearchContext context) ;

    /**
     * 根据休假查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_holiday(Integer id) ;

    /**
     * 根据资源工作时间查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_calendar(Integer id) ;

    /**
     * 根据资源查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_resource(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Resource_calendar_leaves> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Resource_calendar_leaves convert2Domain(cn.ibizlab.odoo.core.client.model.Iresource_calendar_leaves model ,Resource_calendar_leaves domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iresource_calendar_leaves convert2Model(Resource_calendar_leaves domain , cn.ibizlab.odoo.core.client.model.Iresource_calendar_leaves model);

}
